package com.asm.demo.pointman.asm;

import java.net.URLClassLoader;

/**
 * Created by james on 16/2/29.
 */
public class DynamicClassLoader extends URLClassLoader {
    public DynamicClassLoader(URLClassLoader parentClassLoader){
        super(parentClassLoader.getURLs(),parentClassLoader);
    }

    public Class<?> defineClassByByteArray(String className,byte[] bytes){
        return this.defineClass(className,bytes,0,bytes.length);
    }
}
